/*
 * Goto Up
 * Copyright (c) GNB
 *
 *Author Mohammad Ariefin
 * By Smart GNB
 */

(function(a){a.fn.hoverTimeout=function(c,e,b,d){return this.each(function(){var f=null,g=a(this);g.hover(function(){clearTimeout(f);f=setTimeout(function(){e.call(g)},c)},function(){clearTimeout(f);f=setTimeout(function(){d.call(g)},b)})})}})(jQuery);

$(window).scroll(function(){if($(this).scrollTop()>100){$("#top").removeAttr("href");$("#top").stop().animate({bottom:"-2",right:"525"},{duration:600,queue:false})}else{$("#top").stop().animate({bottom:"-50",right:"525"},{duration:600,queue:false})}});$(function(){$("#top").click(function(){$("html, body").animate({scrollTop:0},"slow");return false})});